import Vue from 'vue'
import Router from 'vue-router'
import home from './views/home.vue'
import Ip from './views/ip.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: resolve => require(['./views/login.vue'], resolve)
    },
    {
      path: '/home',
      name:'home',
      component: home
    },
    {
      path: '/ip',
      component: Ip
    }
  ]
})
